package cn.edu.hhtc.stsystem.struts2;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import cn.edu.hhtc.stsystem.entity.form.SupplierEntityForm;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

@Results({ @Result(name = "supplier_add", location = "/WEB-INF/content/basic_info/supplier/supplier_add.jsp")})
public class SupplierAction extends ActionSupport implements ModelDriven<SupplierEntityForm> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2216100932286181791L;
	
	private SupplierEntityForm form;

	@Override
	public SupplierEntityForm getModel() {
		// TODO Auto-generated method stub
		return form;
	}
	
	@Action("/supplier/ajaxGetAdd")
	public String ajaxGetAddSupplier() throws Exception {

		return "supplier_add";
	} 

}
